cmake_minimum_required(VERSION 3.8)

project(cmake_demo VERSION 1.0.0 LANGUAGES C)

# set(CMAKE_C_COMPILER "arm-linux-gcc")
set(SRCDIR $(pwd))

set(CMAKE_C_FLAGS "-Wl,-rpath=/root")
# set(CMAKE_C_FLAGS "-ld")

include_directories($(SRCDIR)/include)
include_directories(/home/gec/jpeg/jpeg-9d/build/include/)

link_directories($(SRCDIR)/lib)
link_directories(/home/gec/jpeg/jpeg-9d/build/lib)

add_executable(show_jpg main.c)

target_link_libraries(show_jpg jpg lcd jpeg)

add_subdirectory(./lib)